package com.lt73.springplugin.service.impl;

import com.lt73.springplugin.service.SmsService;

/**
 * @Author: hanxiao
 * @Date: 2022/3/18 15:51
 */
public class SmsServiceImpl2 implements SmsService {

    @Override
    public boolean supports(String s) {
        return s.startsWith("138");
    }

    @Override
    public void sendSms(String mobile) {
        if (supports(mobile)) {
            System.out.println("SmsServiceImpl2 发送短信成功：" + mobile);
        }
    }
}